package com.lalilu.lmedia

import android.content.Context
import androidx.startup.Initializer
import com.lalilu.lmedia.extension.KanjiToHiraTransformer
import com.lalilu.lmedia.indexer.Indexer

class StartUp : Initializer<Unit> {

    override fun create(context: Context) {
        KanjiToHiraTransformer.init(context)
        Indexer.preInit { context }
    }

    override fun dependencies(): List<Class<out Initializer<*>>> {
        return emptyList()
    }

    companion object {
        init {
            System.loadLibrary("taglib")
        }
    }
}